﻿/*
 *  Copyright 2012 HEINER DIRECT GmbH & Co. KG
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * 
 * @Author Rafael Dabrowski
 * 
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HDI.SharePoint.Webparts.HDIAggregatedView.HDIAggregatedViewWP
{
    public class Config
    {
        public const string resourcePath = "/_layouts/HDI.SharePoint.Webparts.HDIAggregatedView/";
        public ConfigWeb Web;
        public ConfigList List;
        public List<ConfigField> Filter;
        public List<ConfigField> Fields;

    }
    public class ConfigWeb
    {
        public string name { get; set; }
        public string url { get; set; }
    }


    public class ConfigList
    {
        public string name { get; set; }
        public string id { get; set; }
    }


    public class ConfigField
    {
        public string name { get; set; }
        public string internalName { get; set; }
        public string type { get; set; }
        public string fieldType { get; set; }
        public String formula { get; set; }
        public List<ConfigField> fields { get; set; }
        public string format { get; set; }
        public string formatField { get; set;  }
        public string aggregate { get; set; }
        public int position { get; set;  }
    }

}
